package com.andatsoft.laisim.adapter;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class MainPagerAdapter extends FragmentPagerAdapter {

	private List<Fragment> mFragmentList;
	public MainPagerAdapter(FragmentManager fm, List<Fragment> fragmentList) {
		super(fm);
		mFragmentList = fragmentList;
	}

	@Override
	public Fragment getItem(int pos) {
		return mFragmentList.get(pos);
	}

	@Override
	public int getCount() {
		return mFragmentList.size();
	}
	
}
